package com.findFish.cage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.cage.mapper.CageWaterflowMapper;
import com.findFish.cage.domain.CageWaterflow;
import com.findFish.cage.service.ICageWaterflowService;

/**
 * 网箱水流监测Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class CageWaterflowServiceImpl implements ICageWaterflowService 
{
    @Autowired
    private CageWaterflowMapper cageWaterflowMapper;

    /**
     * 查询网箱水流监测
     * 
     * @param id 网箱水流监测主键
     * @return 网箱水流监测
     */
    @Override
    public CageWaterflow selectCageWaterflowById(String id)
    {
        return cageWaterflowMapper.selectCageWaterflowById(id);
    }

    /**
     * 查询网箱水流监测列表
     * 
     * @param cageWaterflow 网箱水流监测
     * @return 网箱水流监测
     */
    @Override
    public List<CageWaterflow> selectCageWaterflowList(CageWaterflow cageWaterflow)
    {
        return cageWaterflowMapper.selectCageWaterflowList(cageWaterflow);
    }

    /**
     * 新增网箱水流监测
     * 
     * @param cageWaterflow 网箱水流监测
     * @return 结果
     */
    @Override
    public int insertCageWaterflow(CageWaterflow cageWaterflow)
    {
        return cageWaterflowMapper.insertCageWaterflow(cageWaterflow);
    }

    /**
     * 修改网箱水流监测
     * 
     * @param cageWaterflow 网箱水流监测
     * @return 结果
     */
    @Override
    public int updateCageWaterflow(CageWaterflow cageWaterflow)
    {
        return cageWaterflowMapper.updateCageWaterflow(cageWaterflow);
    }

    /**
     * 批量删除网箱水流监测
     * 
     * @param ids 需要删除的网箱水流监测主键
     * @return 结果
     */
    @Override
    public int deleteCageWaterflowByIds(String[] ids)
    {
        return cageWaterflowMapper.deleteCageWaterflowByIds(ids);
    }

    /**
     * 删除网箱水流监测信息
     * 
     * @param id 网箱水流监测主键
     * @return 结果
     */
    @Override
    public int deleteCageWaterflowById(String id)
    {
        return cageWaterflowMapper.deleteCageWaterflowById(id);
    }
}
